

//  #include "print_log.h"  



#ifndef __PRINT_LOG_H__
#define __PRINT_LOG_H__

#include <stdint.h>
#include <syslog.h>
#include <stddef.h>



#if 0

#define log_emerg(fmt, ...) do { \
    syslog(LOG_EMERG, fmt, ## __VA_ARGS__); \
    } while (0)

#define log_alert(fmt, ...) do { \
    syslog(LOG_ALERT, fmt, ## __VA_ARGS__); \
    } while (0)

#define log_crit(fmt, ...) do { \
    syslog(LOG_CRIT, fmt, ## __VA_ARGS__); \
    } while (0)

#define log_err(fmt, ...) do { \
		syslog(LOG_ERR, fmt, ## __VA_ARGS__); \
		} while (0)

#define log_warning(fmt, ...) do { \
		syslog(LOG_WARNING, fmt, ## __VA_ARGS__); \
		} while (0)

#define log_notice(fmt, ...) do { \
		syslog(LOG_NOTICE, fmt, ## __VA_ARGS__); \
		} while (0)

#define log_info(fmt, ...) do { \
    syslog(LOG_INFO, fmt, ## __VA_ARGS__); \
    } while (0)


#define log_debug(fmt, ...) do { \
    syslog(LOG_DEBUG, fmt, ## __VA_ARGS__); \
    } while (0)

#endif



#define log_emerg      printf
#define log_alert      printf
#define log_crit       printf
#define log_err        printf
#define log_warning    printf
#define log_notice     printf
#define log_info       printf
#define log_debug      printf


void PrintHex( uint8_t *buf,uint16_t len);
void PrintHex2String( uint8_t *buf,uint16_t len);





#endif     //--------__PRINT_LOG_H__-------------





